import 'pang_rowth_plugin_platform_interface.dart';

class PangRowthPlugin {
  Future<String?> getPlatformVersion() {
    return PangRowthPluginPlatform.instance.getPlatformVersion();
  }

  /// 初始化插件
  /// [djxJson] DJX配置JSON字符串（可选）
  /// [novJson] NOV配置JSON字符串（可选）
  Future<bool> init({
    String? djxJson,
    String? novJson,
  }) {
    return PangRowthPluginPlatform.instance.init(
      djxJson: djxJson,
      novJson: novJson,
    );
  }

  /// 加载DJX
  Future<bool> loadDJX() {
    return PangRowthPluginPlatform.instance.loadDJX();
  }
}
